extends IBasicComponent


class_name IEventActuator
"""
动作事件执行器
"""


static func safe_execute(e: IEventActuator) -> bool:
    if e and IComponent.is_available(e):
        e.execute()
        return true
    return false


## 是否在加载完成后自动触发
@export var is_execute_when_ready: bool = false


func __prepare() -> void:
    super.__prepare()

    if IComponent.is_available(self) and is_execute_when_ready:
        execute()

func execute() -> void:
    pass
